package com.sbpm.crmbpm.client.util;

import com.google.gwt.user.client.rpc.AsyncCallback;
import com.sencha.gxt.widget.core.client.box.MessageBox;

/**
 * Created by TT on 26.10.2014.
 */
public abstract class SimpleAsyncCallback<T> implements AsyncCallback<T>
{
    @Override
    public void onFailure( Throwable caught )
    {
        MessageBox box = new MessageBox( "Fail: " + caught.getMessage() );
        //box.setMessage( caught.getStackTrace() );
        box.show();
    }
}
